package com.by.controller;

import com.by.dao.PayInfoDao;
import com.by.pojo.PayInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/14 15:00
 * @注释
 */
@RestController
public class MyBatisPlus {
    @Autowired
    private PayInfoDao payInfoDao;

    @GetMapping("/payInfo")
    public PayInfo getBean() {
        return payInfoDao.selectByPrimaryKey(1L);
    }
}
